package exercises.Charpter7;

//: reusing/Chess.java
// Inheritance, constructors and arguments.
import static net.mindview.util.Print.*;

class Game {
  Game(int i) {
    print("Game constructor");
  }
}

class BoardGame extends Game {
  BoardGame(int i) {
    super(i);
    print("BoardGame constructor");
  }
}	

public class Six extends BoardGame {
  Six() {
    super(11);
    print("Chess constructor");
  }
  @SuppressWarnings("unused")
public static void main(String[] args) {
    Six x = new Six();
  }
} /* Output:
Game constructor
BoardGame constructor
Chess constructor
*///:~
